<nav class="top" th:fragment="html" xmlns:th="http://www.w3.org/1999/xhtml">
    <a href="/home">
        <span style="color:#C40000;margin:0px" class=" glyphicon glyphicon-home redColor"></span>
        天猫首页
    </a>

    <span>欢迎来拍拍网</span>

    <span th:if="${null!=session.user}">
		<a href="login" th:text="${session.user.name}"></a>
		<a href="forelogout">退出</a>
	</span>


    <span th:if="${null==session.user}">
		<a href="login">请登录</a>
		<a href="register">免费注册</a>
	</span>


    <span class="pull-right">
			<a href="bought">我的订单</a>
			<a href="http://localhost:8150/center/index">个人中心</a>
			<a href="cart">
			<span style="color:#C40000;margin:0px" class=" glyphicon glyphicon-shopping-cart redColor"></span>
			收藏夹<strong th:text="${session.cartTotalItemNumber}"></strong>件</a>
	</span>
</nav>



